package com.ssm.study.service;

import com.ssm.study.dao.IAdminDao;
import com.ssm.study.entity.Admin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by w on 2017/4/7.
 */
@Service("adminService")
public class AdminServiceImpl implements IAdminService {

    @Resource
    IAdminDao adminDao;

    public List<Admin> getAllAdmins() {
        return adminDao.selectAllAdmin();
    }
}
